#!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@File        :   剑指Offer58-II.左旋转字符串.py    
@Contact     :   lhouctcs@163.com
@License     :   MIT
@Time        :   2023/2/8 15:17
@Author      :   lhou 
@Version     :   0.1.0
@Description :
"""


# import lib
class Solution:
    def reverseLeftWords(self, s: str, n: int) -> str:
        tmp = ""
        for i in range(n):
            tmp += s[i]
        return s[n:] + tmp
